package com.ry.est.service;

import com.ry.est.dto.ModelDTO;
import com.ry.est.dto.ModelDetailDTO;
import com.ry.est.dto.PageResult;
import com.ry.est.entity.Model;

import java.util.List;

/**
 * @author ry
 * @since 2021-11-05 12:15
 **/
public interface ModelService {
    List<ModelDTO> listBy(Model model, Integer pageIndex, Integer pageSize);

    PageResult<ModelDTO> listByPage(Model model, Integer pageIndex, Integer pageSize);

    ModelDetailDTO getById(Long id);
}
